import axios from 'axios';
class ArticleApi {
  async updateArticle (article) {
    try {
      const url = `//backend-dev.bigwinger.com/article/update`;
      const response = await axios.post(
        url, {
          data: article,
        });
      return response.data;
    } catch (e) {
      console.error(e);
      return e;
    }
  }
}

export default new ArticleApi();
